import Vue from 'vue'
import Router from 'vue-router'
import SearchPages from '../pages/SearchPages.vue'
import ShoparticlePages from "../pages/ShoparticlePages.vue"
import ShopweiyiPages from "../pages/ShopweiyiPages.vue"
import Index from '../pages/Index.vue'
import Login from '../pages/Login.vue'
import Register from '../pages/Register.vue'
import My from '../pages/My.vue'
import TotalContent from "../pages/TotalContent.vue";
import DetailsContent from "../pages/DetailsContent.vue";
import ShoppingCar from '../pages/ShoppingCar.vue';
import ShopDetail from '../pages/ShopDetail.vue';
import ShopClassify from '../pages/ShopClassify.vue';
import ShopBrand from '../pages/ShopBrand.vue';

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/search',
      name: 'SearchPages',
      component: SearchPages
    },
    {
      path: '/shoparticle',
      name: 'ShoparticlePages',
      component: ShoparticlePages
    },
    {
      path: '/weiyi',
      name: 'ShopweiyiPages',
      component: ShopweiyiPages
    },
    {
      path: '/',
      name: 'Index',
      component: Index
    },
    {
      path:"/login",
      name:"Login",
      component:Login
    },
    {
      path:"/register",
      name:"Register",
      component:Register
    },
    {
      path:"/my",
      name:"My",
      component:My
    },
    {
      path: '/content',
      name: 'content',
      component: TotalContent
    },
    {
      path:'/details',
      name:'details',
      component:DetailsContent
    },
    {
      path: '/ShoppingCar',
      name: 'ShoppingCar',
      component: ShoppingCar
    },
    {
      path: '/ShopDetail',
      name: 'ShopDetail',
      component: ShopDetail
    },
    {
      path: '/ShopClassify',
      name: 'ShopClassify',
      component: ShopClassify
    },
    {
      path: '/ShopBrand',
      name: 'ShopBrand',
      component:ShopBrand
    }
  ]
})
